package com.syh.jn.scm.domain.supplier.repository.base.downstream;

import com.syh.core.ddd.infrastructure.repository.AggregateRepository;
import com.syh.jn.scm.domain.supplier.entity.base.downstream.Downstream;
import com.syh.jn.scm.domain.supplier.entity.base.downstream.DownstreamAccount;
import com.syh.jn.scm.dto.supplier.base.downstream.DownstreamAddressVo;

import java.util.List;

public interface DownstreamRepository extends DownstreamReadRepository, AggregateRepository<Downstream, Long> {

  /**
   * 更新接口
   *
   * @param downstream      对象
   * @param isUpdateAddress 是否更新地址
   */
  void update(Downstream downstream, Boolean isUpdateAddress);


}
